﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace RILABomberman.img
{
    
    class ImageCharacter : IDisposable
    {
        static String[] images;
        static int position;

        public static void LoadImageCharacter()
	    {
            images = System.IO.Directory.GetFiles("img/perso/");
            position = 0;
	    }

        public static String getNext()
        {
            if (position < images.Length-1) position += 1;
            return images[position];
        }

        public static String getPrevious()
        {
            if (position > 0) position -= 1;
            return images[position];
        }

        public static String getCurrent()
        {
            return images[position];
        }


        public void Dispose()
        {
            
        }
    }
}
